﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Libs.Content;

public partial class Controls_News_Clip : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        NewsWeb _NewsWeb = new NewsWeb();
        List<NewsWeb> list;

        list = _NewsWeb.GetList(29, 0, 1);
        _NewsWeb = list[0];
        list.RemoveAt(0);
        ltrVideo.Text = Resources.Html.YouTube.Replace("$id$", _NewsWeb.SubTitle)
            .Replace("$width$", "255")
            .Replace("$height$", "168");
    }
}